package fpzhan.plane.program.describe;

import fpzhan.plane.program.compose.CodeBlockCompose;
import fpzhan.plane.program.connect.CodeBlockConnect;

public class CodeBlockComment<T extends CodeBlockCompose,E extends CodeBlockConnect> {

    private T CodeBlockCompose;

    private E CodeBlockConnect;

    public CodeBlockComment(T CodeBlockCompose, E CodeBlockConnect) {
        this.CodeBlockCompose = CodeBlockCompose;
        this.CodeBlockConnect=CodeBlockConnect;
    }

    protected T getCompose(){
        return CodeBlockCompose;
    }

   public E comment(String comment){
        this.CodeBlockCompose.getComposeContext().setComment(comment);
        return this.CodeBlockConnect;
   }

    protected void setChainCodeBlockConnect(E chainCodeBlockConnect) {
        this.CodeBlockConnect = chainCodeBlockConnect;
    }
}
